package com.dxiang.demo.common.exception;

public class ApiException extends Exception
{
	
	private static final long serialVersionUID = -5677074525105877518L;

	private String errCode;
	private String errMsg;

	public ApiException(){}
	
	public ApiException(String message, Throwable cause)
	{
	  super(message, cause);
	}
	
	public ApiException(String message) {
	  super(message);
	}
	
	public ApiException(Throwable cause) {
	  super(cause);
	}
	
	public ApiException(String errCode, String errMsg) {
	  super(errCode + ":" + errMsg);
	  this.errCode = errCode;
	  this.errMsg = errMsg;
	}
	
	public String getErrCode() {
	  return this.errCode;
	}
	
	public String getErrMsg() {
	  return this.errMsg;
	}
  
}
